GetError Method (Utility)

Gets the most recent error for this object.

Syntax

obj.GetError()
Where obj is an OpScrUtil.Utility object.

Parameters

None.

Return Type

String.

Example

To get an error after a function fails, enter:

Set obj = CreateObject("OpScrUtil.Utility")
If Not(obj.Sleep(5)) Then
MsgBox "Sleep failed. The error is " & obj.GetError()
End If